/**
 * Copyright (C) 2013 The yydorid-framework project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.yangying.androidframework.util;

import android.content.Context;
import android.content.Intent;

/**
 * @author yangying
 * @date 2013-1-21 下午2:53:56
 * @version 1.0
 *
 */
public class EMailUtil {

	public static void share(Context context, String subject, String content){
		Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); 
        // 文本格式 
        emailIntent.setType("text/plain"); 
        // 对方邮件地址 
        emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, ""); 
        // 标题内容 
        emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject); 
        // 邮件文本内容 
        emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, content); 
        context.startActivity(Intent.createChooser(emailIntent,"Email")); 
	}
}
